package com.ruoyi.dingtalk.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 部门信息
 * {
 *      * "auto_add_user": true,
 *      * "create_dept_group": true,
 *      * "dept_id": 399xxxx96,
 *      * "name": "财务部",
 *      * "parent_id": 1
 *      * }
 */
@NoArgsConstructor
@Data
@ToString
public class DeptInfo {

    private Boolean auto_add_user;
    private Boolean create_dept_group;
    private Long dept_id;
    private String name;
    private Integer parent_id;
    private List<DeptInfo> children;
}
